package api

import (
	"gin/api/helper"
	"github.com/gin-gonic/gin"
	"net/http"
)

// 获取信息
func Info(c *gin.Context) {
	info, _ := c.Get("username")
	data := helper.Out(200, info)
	c.JSON(http.StatusOK, data)
}
